package com.bdsy.system.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.bdsy.system.model.User;


public interface UserMapper {
	
	List<String> queryAllPerms(String userId);
	
    User selectLoginame(String loginame);
    
    User selectByNamePwd(Map<String, Object> map);
    
    List<Map> selectUserList();
    
    int insert(User user);
    
    int update(User user);
    
    int updatePassWord(User user);
    
    int deleteUser(@Param(value = "pIds")List<String> pIds);
    
    void updateUserDate(@Param("lastAccessTime") Date lastAccessTime,@Param("uid") String uid,@Param("userId") String userId);
    
    User selectUserByUid(String uid);
    
    List<Map> selectUserName();
    
    User selectUserById(String userId);
    
    String getLoginPasswordById(String userId);
    
}